package edu.hrbeu.crc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.hrbeu.crc.pojo.dto.SavingPlanDTO;
import edu.hrbeu.crc.pojo.entity.SavingPlan;
import edu.hrbeu.crc.pojo.query.SavingPlanQuery;
import edu.hrbeu.crc.pojo.result.PageResult;
import edu.hrbeu.crc.pojo.vo.SavingPlanPageVO;
import edu.hrbeu.crc.pojo.vo.SavingPlanVO;

import java.util.List;


public interface SavingPlanService extends IService<SavingPlan> {

    /**
     * 添加存钱计划
     * @param savingPlanDTO
     */
    String add(SavingPlanDTO savingPlanDTO);

    /**
     * 分页查询
     * @param savingPlanQuery
     * @return
     */
    PageResult<SavingPlanPageVO> querySavingPlan(SavingPlanQuery savingPlanQuery);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    SavingPlanVO get(Integer id);

    /**
     * 修改计划
     * @param savingPlanDTO
     */
    void updateSavingPlan(SavingPlanDTO savingPlanDTO);

    /**
     * 批量删除
     * @param ids
     */
    void delete(List<Integer> ids);
}
